<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=PU924Omqzi2NhOClcTdNfd0HWOBPPQ1d"></script>

  <!-- 引入echarts cnd引入 -->
  <!-- <script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js"></script>  -->

  <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.2/dist/leaflet.css" />
  <script src="https://unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script>

  <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  <link id="setIcon" rel="shortcut icon" type="image/x-icon" href="./public/images/icon.png" />
  <title>换电管理系统</title>
  <!-- ./public/images/icon.png   logoxiong.jpg-->
  <% if (process.env.NODE_ENV==='production' ) { %>
    <!-- 生产环境 -->
    <script>
      document.write(
        '<script src="./config/index.js?t=' +
        new Date().getTime() +
        '"><\/script>'
      )
    </script>
    <% }else { %>
      <!-- 开发环境 -->
      <script src="./static/config/index.js"></script>
      <script src="./static/plugins/mock-1.0.0-beta3/mock-min.js"></script>
      <!-- 引入echarts 本地引入 -->
      <script src="./static/plugins/echarts-3.8.5/echarts.common.min.js"></script>
      <script src="./static/plugins/ueditor-1.4.3.3/ueditor.config.js"></script>
      <script src="./static/plugins/ueditor-1.4.3.3/ueditor.all.min.js"></script>
      <script src="./static/plugins/ueditor-1.4.3.3/lang/zh-cn/zh-cn.js"></script>
      <% } %>
        <script>
          document.addEventListener('mousewheel', function (e) {
            e = e || window.event;
            if ((e.wheelDelta && event.ctrlKey) || e.detail) {
              event.preventDefault();
            }
          }, {
            capture: false,
            passive: false
          });
          window.onload = function () {
            document.addEventListener('touchstart', function (e) {
              console.log("1", e.touches.length)
              if (e.touches.length > 1) {
                e.preventDefault()
              }
            })
            document.addEventListener('gesturestart', function (e) {
              console.log("2")
              e.preventDefault()
            })
          }
          document.documentElement.addEventListener(
            "touchstart",
            function (event) {
              if (event.touches.length > 1) {
                event.preventDefault();
              }
            },
            { passive: false }
          );
          // 禁止双击放大
          let lastTouchEnd = 0;
          document.documentElement.addEventListener(
            "touchend",
            function (event) {
              var now = Date.now();
              if (now - lastTouchEnd <= 300) {
                event.preventDefault();
              }
              lastTouchEnd = now;
            },
            { passive: false }
          );
          //阻止双指放大页面
          document.documentElement.addEventListener("gesturestart",
            function (event) {
              event.preventDefault();
            })
        </script>
</head>

<script>
  setTimeout(() => {
    $(document).ready(function ($) {
      if (window.SITE_CONFIG.VUE_APP_URL.includes("charge-cabinet")) {
        document.title = '特电智充'
        document.getElementById("setIcon").href = "./public/images/icon2.jpg"
      } else {
        let remark = window.sessionStorage.getItem('remark')
        if (remark == 1) {
          document.title = '中国电信'
        } else if (remark == 2) {
          document.title = '格林赛福'
        } else if (remark == 3) {
          document.title = "杭州特电"
        }
      }
    })
  }, 800);
</script>


<body style="width: 100vw; min-height: 100vh;">
  <div id="app"></div>
</body>

</html>